package com.hst.capacity.domain.model.entity.marketing.promotion;


import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.CreationTimestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * 促销活动优惠规则关联表
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "sys_promotion_relation")
public class PromotionRelationEntity {

    @Id
    /** 活动ID */
    private String idPromotion;
    private String idCouponRule;
    private String createBy="capacity";
    @CreationTimestamp
    @Column(updatable = false)
    private LocalDateTime createTime;

}
